@import "ng-devui/styles-var/devui-var.scss";
da-layout-header {
  display: flex;
  position: relative;
}

da-layout-sidebar {
  display: flex;
  flex-direction: column;
  & > da-side-menu,
  & > da-navbar {
    flex: 1 1 0%;
    overflow: hidden auto;
    &::-webkit-scrollbar{
      display: none;
    }
    &:hover{
      &::-webkit-scrollbar{
        display: block;
      }
    }
  }
  & > da-navbar {
    margin-top: 10px;
  }
  & > da-header-logo {
    display: inline-block;
  }
  .da-sidebar-tools {
    border-top: 1px solid $devui-dividing-line;
    .da-sidebar-tools-list {
      display: flex;
      justify-content: flex-end;
    }
    .da-sidebar-tools-item {
      width: 54px;
      height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      &:hover {
        color: $devui-brand;
      }
    }
  }
}
.da-multi-settings {
  position: fixed;
  right: 0;
  top: 400px;
  width: 40px;
  height: 40px;
  background-color: $devui-brand;
  border-radius: 4px 0 0 4px;
  font-size: 18px;
  color: $devui-light-text;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  &:hover {
    background-color: $devui-brand-hover;
  }
}
.content{
  height:100% !important;
}
.da-personalize-config {
  position: fixed;
  right: 20px;
  bottom: 16px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $devui-text;
  background-color: $devui-base-bg;
  box-shadow: $devui-shadow-length-feedback-overlay $devui-shadow;
  z-index: 10;
  font-size: $devui-font-size-page-title;
  &:hover {
    svg path {
      fill: $devui-brand;
    }
  }
  svg path {
    fill: $devui-text;
  }
}
:host::ng-deep {
  .devui-backtop {
    .devui-backtop-content {
      background-color: $devui-base-bg;
      color: $devui-text;
      box-shadow: $devui-shadow-length-feedback-overlay $devui-shadow;
      opacity: 1;
      svg {
        width: $devui-font-size-page-title;
        height: $devui-font-size-page-title;
        path {
          fill: $devui-text;
        }
      }
      &:hover {
        svg path {
          fill: $devui-brand;
        }
      }
    }
  }
}
.da-no-logo .da-header-collapsed-button {
  margin-left: 16px;
}
.da-header-collapsed-button {
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
.footer{
  text-align: center;
  background-color: $devui-base-bg;
  border-radius: $devui-border-radius-card;
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  padding: 5px 0px 5px 0px;
  position: fixed;
  bottom: 0;
}
.da-layout-sidebar .da-sidebar-tools .da-sidebar-tools-item{
  height: 30px;
}
.menu-child{
  padding-left: 10px;
  height: 100%;
  width: 200px;
  position: fixed;
  top: 0px;
  left: 240px;
  z-index: 999;
  background: $devui-base-bg;
  .menu-child-title{
    font-weight: 900;
    font-size: 20px;
    line-height: 60px;
    height: 60px
  }
  .menu-child-body{
    border-left: 1px solid $devui-dividing-line;
    height: 100%;
    overflow-y: auto;
    &::-webkit-scrollbar{
      display: none;
    }
    &:hover{
      &::-webkit-scrollbar{
        display: block;
      }
    }
  }
}
.menu-child2{
  padding-left: 10px;
  height: 100%;
  width: 200px;
  position: fixed;
  top: 0px;
  left: 54px;
  z-index: 999;
  background: $devui-base-bg;
  .menu-child-title{
    font-weight: 900;
    font-size: 20px;
    line-height: 60px;
    height: 60px
  }
  .menu-child-body{
    border-left: 1px solid $devui-dividing-line;
    height: 100%;
    overflow-y: auto;
    &::-webkit-scrollbar{
      display: none;
    }
    &:hover{
      &::-webkit-scrollbar{
        display: block;
      }
    }
  }
}
:host ::ng-deep .devui-accordion-item-title.devui-over-flow-ellipsis {
  border-radius: $devui-border-radius;
}
.menu-child-top{
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: auto;
  min-height: 60px;
  position: fixed;
  top: 60px;
  left: 0px;
  z-index: 999;
  background: $devui-base-bg;
  border-top: 1px solid $devui-dividing-line;
  justify-content: center;
  .flex-g{
    width: 200px;
  }
  .menu-child-item{
    width: calc(100vw - 500px)!important;
    .menu-child-title{
      span{
        font-weight: 900;
        font-size: 14px;
        height: 60px
      }
    }
    .menu-child-body{
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      .menu-child-body-text{
        margin: 10px;
        white-space: nowrap;
        cursor: pointer;
        a{
          color: $devui-text;
          &:hover{
            color: $devui-brand;
          }
          &.active{
            color: $devui-brand;
          }
        }
      }
    }
  }
}

.chat-ai{
  width: 100%;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  &:hover{
    img{
        filter: drop-shadow(0 0 12px rgba(#5e7ce0, 0.8));
      }
      .ai-text{
        color:#5e7ce0;
      }
  }

}
.ai-text{
  font-size: 20px;
  color: $devui-text;
  font-weight: 900;
  margin-left: 10px;
  line-height: 50px;
  padding-bottom: 8px;
}
.ai-da-navbar{
  flex: 1 1 0%;
  height: 100%;
  display: flex;
  flex-direction: column;
  da-navbar{
    flex: 1 1 0%;
  }
  .chat-ai{
    justify-content: center;
  }
}
